import request from '@/router/axios';
import qs from 'qs';

// 数据列表-危险品种类
export const getListDangerousTypeAll = () => request({
    url: '/consumables/dangerousType/v1/findAll',
    method: 'post',
})
// 添加-危险品种类
export const addDangerousType = (data) => request({
    url: '/consumables/dangerousType/v1/insert',
    method: 'post',
    data: data,
})
// 修改-危险品种类
export const updDangerousType = (data) => request({
    url: '/consumables/dangerousType/v1/update',
    method: 'post',
    data: qs.stringify(data),
})
// 删除-危险品种类
export const delDangerousType = (data) => request({
    url: '/consumables/dangerousType/v1/getById?id='+data,
    method: 'post',
})
